   
{%- if nav.setting_json != "" -%}
  {% if nav.setting_json.color or nav.setting_json.style or nav.setting_json.bold or nav.setting_json.decoration %}
  {%- capture style -%}
  style=
  {%- if nav.setting_json.color -%}
  color:{{nav.setting_json.color}};
  {%- endif -%}
  
  {%- if nav.setting_json.style -%}
  font-style:{{nav.setting_json.style}};
  {%- endif -%}
  
  {%- if nav.setting_json.bold -%}
  font-weight:{{nav.setting_json.bold}};
  {%- endif -%}
  
  {%- if nav.setting_json.decoration -%}
  text-decoration:{{nav.setting_json.decoration}};
  {%- endif -%}
  {%- endcapture -%}
  {% else %}
  {%- capture style -%}{%- endcapture -%}
  {% endif %}
  
  {%- if nav.setting_json.model != 1 -%}
  {%- capture rel -%}rel="external nofollow"{%- endcapture -%}
  {%- endif -%}
  {%- endif -%}
  {% if nav.url_json.url and nav.url_json.url != "" %}
  {%- capture target -%}target="{{nav.setting_json.open | default : '_self' }}"{%- endcapture -%}              
  {% endif %}
  <a {{style}} {{rel}} class="{{class}}" {{target}} href="{{nav.url_json.url | default:'javascript:void(0)' }}">{{nav.nav_item_name}}</a>